import { Inject, Controller, Post, Body } from '@midwayjs/decorator';
import { Context } from '@midwayjs/koa'
import { UserService } from '../service/user.service';

/**
 * 描述
 */
@Controller('/wx')
export class APIController {
    @Inject()
    ctx: Context;
    @Inject()
    UserService: UserService;
    @Post('/wxnotify')
    async wxnotify(@Body() body: any) {

        return await this.UserService.notify(body)
    }
}